package day1108.demo02;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/8 15:22
 */

public class Wql {
    private Wql(){

    }
    private static volatile  Wql wql;

    public static Wql getInstance(){
        if (wql==null){
            synchronized (Wql.class){
                if (wql==null){
                    wql=new Wql();
                }
            }
        }
        return wql;
    }
    public static void show(){
        System.out.println("haha");
    }
}
